package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


@TableName("log")
@Data
public class Log {
    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String USERNAME = "username";
    public static final String TIME = "time";
    public static final String IP = "ip";


    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;

    @TableField(NAME)
    private String name;


    @TableField(USERNAME)
    private String username;

    @TableField(TIME)
    private String time;

    @TableField(IP)
    private String ip;

    public Log() {
    }

    public Log(Integer id, String name, String username, String time, String ip) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.time = time;
        this.ip = ip;
    }
}